package com.zz.load;

import com.zz.load.handle.RequestHandle;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

public class LoadZZ {
    public static void main(String[] args) {
        try {
            ServerSocket serverSocket = new ServerSocket(9090);
            while (!serverSocket.isClosed()){
                Socket socket = serverSocket.accept();
                new Thread(new RequestHandle(socket)).start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
